<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Struct template bucket_hash_t</title>
<link rel="stylesheet" href="../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
<link rel="up" href="../intrusive/reference.html#doxygen.hashtable_8hpp" title="Header &lt;boost/intrusive/hashtable.hpp&gt;">
<link rel="prev" href="structboost_1_1intrusive_1_1bucket__hash__equal__t_3_01ValueTraits_00_01VoidOrKeyOfValue_00_01Vo5d8c2c5206747ff1bb56f6444a835544.html" title="Struct template bucket_hash_equal_t&lt;ValueTraits, VoidOrKeyOfValue, VoidOrKeyHash, VoidOrKeyEqual, BucketTraits, LinearBuckets, true&gt;">
<link rel="next" href="structboost_1_1intrusive_1_1bucket__plus__vtraits.html" title="Struct template bucket_plus_vtraits">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../boost.png"></td>
<td align="center"><a href="../../../index.html">Home</a></td>
<td align="center"><a href="../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="structboost_1_1intrusive_1_1bucket__hash__equal__t_3_01ValueTraits_00_01VoidOrKeyOfValue_00_01Vo5d8c2c5206747ff1bb56f6444a835544.html"><img src="../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../intrusive/reference.html#doxygen.hashtable_8hpp"><img src="../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="structboost_1_1intrusive_1_1bucket__plus__vtraits.html"><img src="../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="doxygen.structboost_1_1intrusive_1_1bucket__hash__t"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Struct template bucket_hash_t</span></h2>
<p>boost::intrusive::bucket_hash_t</p>
</div>
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../intrusive/reference.html#doxygen.hashtable_8hpp" title="Header &lt;boost/intrusive/hashtable.hpp&gt;">boost/intrusive/hashtable.hpp</a>&gt;

</span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> ValueTraits<span class="special">,</span> <span class="keyword">typename</span> VoidOrKeyOfValue<span class="special">,</span> 
         <span class="keyword">typename</span> VoidOrKeyHash<span class="special">,</span> <span class="keyword">typename</span> BucketTraits<span class="special">,</span> <span class="keyword">bool</span> LinearBuckets<span class="special">&gt;</span> 
<span class="keyword">struct</span> <a class="link" href="structboost_1_1intrusive_1_1bucket__hash__t.html" title="Struct template bucket_hash_t">bucket_hash_t</a> <span class="special">:</span> <span class="keyword">public</span> boost::intrusive::bucket_plus_vtraits&lt; ValueTraits, BucketTraits, LinearBuckets &gt;
<span class="special">{</span>
  <span class="comment">// types</span>
  <span class="keyword">typedef</span> <span class="identifier">bucket_plus_vtraits</span><span class="special">&lt;</span> <span class="identifier">ValueTraits</span><span class="special">,</span> <span class="identifier">BucketTraits</span><span class="special">,</span> <span class="identifier">LinearBuckets</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">value_traits</span> <a name="doxygen.structboost_1_1intrusive_1_1bucket__hash__t_1a8877ccc8bf71fa19577f104d7ab79d7b"></a><span class="identifier">value_traits</span><span class="special">;</span>         
  <span class="keyword">typedef</span> <span class="identifier">value_traits</span><span class="special">::</span><span class="identifier">value_type</span>                                                      <a name="doxygen.structboost_1_1intrusive_1_1bucket__hash__t_1af413a1533f12addddbcedf65a68fcab5"></a><span class="identifier">value_type</span><span class="special">;</span>           
  <span class="keyword">typedef</span> <span class="identifier">value_traits</span><span class="special">::</span><span class="identifier">node_traits</span>                                                     <a name="doxygen.structboost_1_1intrusive_1_1bucket__hash__t_1a5d80a603d8f0249123cf0ddfb18b4918"></a><span class="identifier">node_traits</span><span class="special">;</span>          
  <span class="keyword">typedef</span> <span class="identifier">hash_key_hash</span><span class="special">&lt;</span> <span class="identifier">value_type</span><span class="special">,</span> <span class="identifier">VoidOrKeyOfValue</span><span class="special">,</span> <span class="identifier">VoidOrKeyHash</span> <span class="special">&gt;</span>                  <a name="doxygen.structboost_1_1intrusive_1_1bucket__hash__t_1a77364c630744a9c68d70b35b5f651cc1"></a><span class="identifier">hash_key_hash_t</span><span class="special">;</span>      
  <span class="keyword">typedef</span> <span class="identifier">hash_key_hash_t</span><span class="special">::</span><span class="identifier">type</span>                                                         <a name="doxygen.structboost_1_1intrusive_1_1bucket__hash__t_1aa12136fd395665c846ff571b597723d1"></a><span class="identifier">hasher</span><span class="special">;</span>               
  <span class="keyword">typedef</span> <span class="identifier">hash_key_types_base</span><span class="special">&lt;</span> <span class="identifier">value_type</span><span class="special">,</span> <span class="identifier">VoidOrKeyOfValue</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">key_of_value</span>             <a name="doxygen.structboost_1_1intrusive_1_1bucket__hash__t_1a1aa9b5e310d06d9d431c43f28c27b9e9"></a><span class="identifier">key_of_value</span><span class="special">;</span>         
  <span class="keyword">typedef</span> <span class="identifier">BucketTraits</span>                                                                  <a name="doxygen.structboost_1_1intrusive_1_1bucket__hash__t_1aca976c737e19d65eaede2f737f0365ad"></a><span class="identifier">bucket_traits</span><span class="special">;</span>        
  <span class="keyword">typedef</span> <span class="identifier">bucket_plus_vtraits</span><span class="special">&lt;</span> <span class="identifier">ValueTraits</span><span class="special">,</span> <span class="identifier">BucketTraits</span><span class="special">,</span> <span class="identifier">LinearBuckets</span> <span class="special">&gt;</span>               <a name="doxygen.structboost_1_1intrusive_1_1bucket__hash__t_1a61a8b36062790fc2b2f3d3d094f4f931"></a><span class="identifier">bucket_plus_vtraits_t</span><span class="special">;</span>
  <span class="keyword">typedef</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span>                                                                   <a name="doxygen.structboost_1_1intrusive_1_1bucket__hash__t_1a4ef95f9a0ca2384947290c67f1d7a2e4"></a><span class="identifier">base_t</span><span class="special">;</span>               

  <span class="comment">// <a class="link" href="boost_container_header_reference/classboost_1_1container_1_1flat__multimap.html#id29-bb">public member functions</a></span>
  <a class="link" href="structboost_1_1intrusive_1_1bucket__hash__t.html#doxygen.structboost_1_1intrusive_1_1bucket__hash__t_1adb76874c4973d35532e17fdbb671afba"><span class="identifier">bucket_hash_t</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">ValueTraits</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">bucket_traits</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">hasher</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="structboost_1_1intrusive_1_1bucket__hash__t.html#doxygen.structboost_1_1intrusive_1_1bucket__hash__t_1a9dbf958f1d254a820aaebf254ef1af24"><span class="identifier">bucket_hash_t</span></a><span class="special">(</span><span class="identifier">bucket_hash_t</span> <span class="special">&amp;&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> K<span class="special">&gt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <a class="link" href="structboost_1_1intrusive_1_1bucket__hash__t.html#doxygen.structboost_1_1intrusive_1_1bucket__hash__t_1a5c7aa6dd3904f3dd330d8f9437946a86"><span class="identifier">priv_hash</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">K</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">const</span> <span class="identifier">hasher</span> <span class="special">&amp;</span> <a class="link" href="structboost_1_1intrusive_1_1bucket__hash__t.html#doxygen.structboost_1_1intrusive_1_1bucket__hash__t_1a596f899d215a7fe67b557f8a94ccdb53"><span class="identifier">priv_hasher</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">hasher</span> <span class="special">&amp;</span> <a class="link" href="structboost_1_1intrusive_1_1bucket__hash__t.html#doxygen.structboost_1_1intrusive_1_1bucket__hash__t_1a875a82130c13eeec47ccb354b6b61c3c"><span class="identifier">priv_hasher</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <a class="link" href="structboost_1_1intrusive_1_1bucket__hash__t.html#doxygen.structboost_1_1intrusive_1_1bucket__hash__t_1a3266ff761690052b41da0dbf2e64357c"><span class="identifier">priv_stored_or_compute_hash</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">value_type</span> <span class="special">&amp;</span><span class="special">,</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id-1.3.17.42.14.5.4"></a><h2>Description</h2>
<div class="refsect2">
<a name="id-1.3.17.42.14.5.4.2"></a><h3>
<a name="id29-bb"></a><code class="computeroutput">bucket_hash_t</code> public member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem"><pre class="literallayout"><a name="doxygen.structboost_1_1intrusive_1_1bucket__hash__t_1adb76874c4973d35532e17fdbb671afba"></a><span class="identifier">bucket_hash_t</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">ValueTraits</span> <span class="special">&amp;</span> val_traits<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">bucket_traits</span> <span class="special">&amp;</span> b_traits<span class="special">,</span> 
              <span class="keyword">const</span> <span class="identifier">hasher</span> <span class="special">&amp;</span> h<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><a name="doxygen.structboost_1_1intrusive_1_1bucket__hash__t_1a9dbf958f1d254a820aaebf254ef1af24"></a><span class="identifier">bucket_hash_t</span><span class="special">(</span><span class="identifier">bucket_hash_t</span> <span class="special">&amp;&amp;</span> other<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> K<span class="special">&gt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <a name="doxygen.structboost_1_1intrusive_1_1bucket__hash__t_1a5c7aa6dd3904f3dd330d8f9437946a86"></a><span class="identifier">priv_hash</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">K</span> <span class="special">&amp;</span> k<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">const</span> <span class="identifier">hasher</span> <span class="special">&amp;</span> <a name="doxygen.structboost_1_1intrusive_1_1bucket__hash__t_1a596f899d215a7fe67b557f8a94ccdb53"></a><span class="identifier">priv_hasher</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="identifier">hasher</span> <span class="special">&amp;</span> <a name="doxygen.structboost_1_1intrusive_1_1bucket__hash__t_1a875a82130c13eeec47ccb354b6b61c3c"></a><span class="identifier">priv_hasher</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <a name="doxygen.structboost_1_1intrusive_1_1bucket__hash__t_1a3266ff761690052b41da0dbf2e64357c"></a><span class="identifier">priv_stored_or_compute_hash</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">value_type</span> <span class="special">&amp;</span> v<span class="special">,</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
</ol></div>
</div>
</div>
</div>
<div class="copyright-footer">Copyright © 2005 Olaf Krzikalla<br>Copyright © 2006-2015 Ion Gaztanaga<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
      </p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="structboost_1_1intrusive_1_1bucket__hash__equal__t_3_01ValueTraits_00_01VoidOrKeyOfValue_00_01Vo5d8c2c5206747ff1bb56f6444a835544.html"><img src="../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../intrusive/reference.html#doxygen.hashtable_8hpp"><img src="../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="structboost_1_1intrusive_1_1bucket__plus__vtraits.html"><img src="../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
